var username = "你";
$(function(){
	$.post("/login/is_loggedin.php",null,function(data){
		if(data == "0") {
			location.href = "/login/login.php";
		}else{
			username = data;
			e = $("#user-name");
			e.length > 0 && e.html(data);
		}
	});
});